%% xSpacingTest1

Nin  = 10;
Nout = 10;
Ntransition = 20; 
LI = 0;
LF = 12;
LJump = 4;
Ltransition = 7;
dxi = 0.1;
dxf = 0.05;
dxout = 0.1;

dxm = (dxi+dxf)*0.5;

xip = zeros (Nin,1);
xipOut = zeros (Nout,1);
xipTransition = zeros (Ntransition,1);

xip (1) = 0;
xipOut (1) = 0;
xipTransition (1) = 0;

for i=2:Nin
xip (i) = xip(i-1) + (dxi) - (dxi-dxf) * i / N; 
end


for i=2:Ntransition
xipTransition (i) = xipTransition(i-1) + dxf;
end

% normalize
xip = LI + xip * LJump / xip (Nin);

xipTransition = LJump + dxf + xipTransition * (Ltransition-LJump-dxf) / xipTransition (Ntransition);

xiM = [xip ;xipTransition]; 

plot ([1:1:Nin+Ntransition],xiM,'-x')
